package cn.xd.itstack.springframework.beans.factory.config;

/**
 * @Classname BeanPostProcess
 * @Description Bean 对象执行初始化方法之前、之后的增强
 * @Date 2022/5/17 下午5:32
 * @Created by lvxiaodong
 */
public interface BeanPostProcessor {
    /**
     * Bean 对象执行初始化方法之前执行
     * @param bean
     * @param beanName
     * @return
     */
    Object postProcessBeforeInitialization(Object bean,String beanName);

    /**
     * Bean 对象执行初始化方法之后执行
     * @param bean
     * @param beanName
     * @return
     */
    Object postProcessAfterInitialization(Object bean,String beanName);
}
